{% extends 'layout.html' %}
{% load static %}
{% block css %}
<link rel="stylesheet" href="{% static 'css/login.css' %}">
{% endblock %}
{% block content %}
<div class="login-container">
    <form method="post" id="login-form" class="login-form" novalidate>
        {% csrf_token %}
        <h2>登录</h2>
        <div class="group">
            {% for field in form %}
            {{ field }}
            <span style="color: red;">{{ field.errors.0 }}</span>
            {% endfor %}
        </div>
        <button type="submit" class="submit-button">登录</button>
        <a href="/register/" class="register-link">注册新账号</a>
        <a href="/edit/" class="register-link">忘记密码？点击修改</a>
    </form>
</div>
{% endblock %}
